using System.ComponentModel;
using StudentVideo.Shared.Components.CuForm;
using StudentVideo.Shared.Enums;

namespace StudentVideo.Shared.Dtos.Student;

public abstract record class StudentBase {
   /// <summary>
   /// 学年
   /// </summary>
   [DisplayName("学年")]
   [CuFormMate(CuFormTypeEnums.Select, "学年", 2)]
   [CuFormMateSelect(typeof(StudentGradeEnum))]
   public StudentGradeEnum? SchoolYear { get; set; }

   /// <summary>
   /// 学期
   /// </summary>
   [DisplayName("学期")]
   [CuFormMate(CuFormTypeEnums.Select, "学期", 3)]
   [CuFormMateSelect(typeof(StudentSemesterEnum))]
   public StudentSemesterEnum? Semester { get; set; }

   /// <summary>
   /// 专业
   /// </summary>
   [DisplayName("专业")]
   [CuFormMate("专业", 4)]
   public string? Major { get; set; }

   /// <summary>
   /// 性别
   /// </summary>
   [DisplayName("性别")]
   [CuFormMate(CuFormTypeEnums.Select, "性别", 5)]
   [CuFormMateSelect(typeof(GenderEnum))]
   public GenderEnum? Sex { get; set; }
}
